<template>
  <div id="app">
    <button @click="jian">-</button>
    <span>{{count}}</span>
    <button @click="jia">+</button>
  </div>
</template>
<script>
export default {
  data() {
    return {
        count:0,
    };
  },
  methods: {
      jian(){
          this.count--
      },
      jia(){
          this.count++
      }
  }
};
</script>